$(document).ready(function(){ 
    //------------------Search level------------------
   /*$("#search_form_level #btnSearchLevel").click(function() {
        name=$("#txtSearch").val();
        $.ajax({
            //chi ra action nao ma chung ta muon lam viec
            "url":baseUrl+"admin_combo/level/search",
            "type":"post",
            //chi dinh du lieu muon truyen di la gi
            "data":"name="+name,
            "async":true,
            "success":function(kq){
                if(kq==="name")
                    $("#formerror").html("<ul><li>Không tìm thấy</li></ul>").addClass("mess_error");
                else {
                    //showDialog(kq);
                    loadDataLevel();
                }
            }
        });
        //khi xu ly voi form va co nut submit, chung ta phai stop hanh dong cua form
        return false;
   });*/
});

function loadDataLevel() {
    $("#recorddata").load(baseUrl+"admin_combo/level/reloadDataSearch");
}

